package com.app.service;

import com.app.dao.UserDao;
import com.app.entity.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserService
{
    private UserDao userDao;

    @Resource
    public void setUserDao(UserDao userDao)
    {
        this.userDao = userDao;
    }

    public User getUser()
    {
        return userDao.getUser();
    }

    public void createUser()
    {
        userDao.createUser();
    }
}
